function userlogin() {
			//测试绑定事件
			//alert("代码到这儿了");
			//获取请求参数
			var username = $("#username").val().trim();
			var password = $("#password").val().trim();
			console.log(username+":"+password)//验证：在控制台打印用户名和密码
			//初步格式检测（非空判断，正则判断）
			$("#username_span").html("");
			$("#password_span").html("");
			var ok = true;
			if(username == null || username == ""){
				$("#username_span").html("用户名不能为空");
				ok = false;
			}		
			if (password == null || password == "") {
				$("#password_span").html("密码不能为空");
				ok = false;
			}
			
			if (ok) {
				//发送异步请求
				$.ajax({
					//http://localhost:8088/ems_191/user/login.do
					url: path+"/user/login.do",
					type:"post",
					data:{"username":username,"password":password},
					dataType:"json",
					success:function(result){
						//result是服务器端返回的Json数据
						if (result.status == 0) {
							window.location.href = "emplist.html";
						}else if(result.status == 1){
							$("#username_span").html(result.msg);
						}else if (result.status == 2) {
							$("#password_span").html(result.msg);
						}
						
					},
					error:function(){
						alert("登录失败");
					}
				});
			}
		}